package com.zl.zsk.exception;


import com.zl.zsk.constant.RetCode;

/**
 * @author lxb
 * @version 1.0.0
 * @desc:
 * @date 2020-03-06 15:02
 */
public abstract class AbstractBizException extends RuntimeException{
    public String message;
    public int code;



    public AbstractBizException(String message, int code){
        this.message = message;
        this.code = code;
    }

    public AbstractBizException(RetCode retCode){
        this(retCode.msg,retCode.code);
    }
}
